import request from '@/router/axios'

export function fetchWxLabelList(query) {
  return request({
    url: '/mp/wxlabel/page',
    method: 'get',
    params: query
  })
}

export function getWxLabelInfoList() {
  return request({
    url: '/mp/wxlabel/list',
    method: 'get',
  })
}

export function addWxLabelObj(obj) {
  return request({
    url: '/mp/wxlabel',
    method: 'post',
    data: obj
  })
}

export function getWxLabelObj(id) {
  return request({
    url: '/mp/wxlabel/' + id,
    method: 'get'
  })
}

export function delWxLabelObj(id) {
  return request({
    url: '/mp/wxlabel/' + id,
    method: 'delete'
  })
}

export function putWxLabelObj(obj) {
  return request({
    url: '/mp/wxlabel',
    method: 'put',
    data: obj
  })
}
